package com.zhentao.vo;

import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> {
    private Long total;         // 总记录数
    private Integer pageNum;    // 当前页码
    private Integer pageSize;   // 每页数量
    private List<T> list;       // 数据列表

    public PageResult(Long total, Integer pageNum, Integer pageSize, List<T> list) {
        this.total = total;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.list = list;
    }
}
